import api from '../utils/axios'
import qs from 'qs'


export default {
    /*获取目录列表*/
    getMenuList: function (option) {
        return api.get('api/v1/school-data-menus').then((resp) => {
            let nData = {
                total: resp.data.length,
                list: resp.data
            }
            return Promise.resolve(nData)
        })
    },

    /*获取指定目录ID信息*/
    getMenuDetail(id) {
        return api.get('api/v1/school-data-menus/' + id).then((res) => {
            return Promise.resolve(res.data);
        })
    },



}
